<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>业务合同录入</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script type="text/javascript" src="<%=basePath%>manage/js/jquery.js"></script>
		<script language="javascript" type="text/javascript" src="<%=basePath%>datemaker/WdatePicker.js"></script>
		<script type="text/javascript" src="<%=basePath%>manage/js/addbg.js"></script>
		<script type="text/javascript" src="<%=basePath%>manage/js/formtrafficContract.js"></script>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>manage/css/addTravel.css"></link>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>manage/css/actionErrors.css"></link>

	</head>
	<center>
	<body>
		<s:form action="addTrafficContract" namespace="/" method="post"
			enctype="multipart/form-data" name="contract" onsubmit="return login()">
			<table >
			<thead>
				<tr>
					<td colspan="4" align="center">业&nbsp;务&nbsp;合&nbsp;同&nbsp;录&nbsp;入</td>
				</tr>

			</thead>
			<tbody>
				<tr>
					<td>
						合&nbsp;&nbsp;同&nbsp;&nbsp;名
					</td>
					<td>
						<s:textfield name="contract.name" id="trafficContractName"></s:textfield>
						<span class="emphasize">*</span>
					</td>
				
					<td>
						客&nbsp;&nbsp;户&nbsp;&nbsp;名
					</td>
					<td>
						<s:textfield name="contract.customer" id="trafficContractCustomer"></s:textfield>
						<span class="emphasize">*</span>
					</td>
				</tr>
				<tr>
					<td>
						合同签订时间
					</td>
					<td>
						<input type="text" name="contract.date"
							class="Wdate" onClick="WdatePicker()"  id="trafficContractDate"/>
						<span class="emphasize">*</span>
					</td>
				
					<td>
						合&nbsp;同&nbsp;概&nbsp;述
					</td>
					<td>
						<s:textfield name="contract.summarize" id="trafficContractSummarize"></s:textfield>
						<span class="emphasize">*</span>
					</td>
				</tr>
				<tr>
					<td>
						合&nbsp;同&nbsp;金&nbsp;额
					</td>
					<td>
						<s:textfield name="contract.amount" id="trafficContractAmount" onblur="return checkamount()"></s:textfield>
						<span class="emphasize">*</span>
					</td>
				
					<td>
						合同开始时间
					</td>
					<td>
						<input type="text" name="contract.start"
							class="Wdate" onClick="WdatePicker()" id="trafficContractStart" />
						<span class="emphasize">*</span>
					</td>
				</tr>
				<tr>
					<td>
						合同结束时间
					</td>
					<td>
						<input type="text" name="contract.end"
							class="Wdate" onClick="WdatePicker()" id="trafficContractEnd"/>
						<span class="emphasize">*</span>
					</td>
				
					<td>
						上&nbsp;传&nbsp;合&nbsp;同
					</td>
					<td>
						<s:file name="upload" accept="image/*"/>
						<span class="emphasize">*</span>
					</td>
				</tr>
				</tbody>
				<tfoot>
				<tr>
					<td colspan="4" align="center" height="45px" >
						<input class="submit" type="submit" value="提交"  />
    					<input class="reset" type="reset" value="重置" />
						<input class="return" type="button" value="返回" onclick="window.history.back();" />
						<s:actionerror cssClass="errors" />
					</td>
				</tr>
				</tfoot>
			</table>
		</s:form>
	</body>
	</center>
</html>
